home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / dot_effects_scripts / dot_shot_explosion.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.4 KB  |  130 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_DOTSHOT_EXPLOSION)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_PARTICLE_LIGHT
  28.  
  29.  
  30. --PT.TextureName = "dot_effect_shot_explosion.dds"
  31. PT.TextureName = "dot_effect_sparkles.dds"
  32.  
  33.  
  34. PT.ParticlesPerSecond = 1.0;
  35. PT.InitialNumberOfParticles = 15.0;
  36. PT.BaseLifeTime = 0.8;
  37. PT.BaseLifeTimeVariance = 0.0;
  38. PT.BaseSpeed = 30.0;
  39. PT.BaseSpeedVariance = 0.0;
  40. PT.BaseAngle = 1.65;
  41. PT.BaseAngleVariance = 2.0;
  42. PT.BaseAngleSpeed = 0.4;
  43. PT.BaseAngleSpeedVariance = 1.0;
  44. PT.BaseAngleSpeedDirection = 0;
  45. local vzbzd4 = D3DXVECTOR3:new(0.0,1.0,0.0)
  46. PT.BaseDirection = vzbzd4
  47. vzbzd4:delete()
  48. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  49. PT.BaseDirectionVariance = vzbzd5
  50. vzbzd5:delete()
  51. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  52. PT.BasePosition = vzbzd6
  53. vzbzd6:delete()
  54. local vzbzd7 = D3DXVECTOR3:new(8.0,8.0,8)
  55. PT.BasePositionVariance = vzbzd7
  56. vzbzd7:delete()
  57. PT.BaseSize = 2.0;
  58. PT.BaseSizeVariance = 1.0;
  59.  
  60. -- color over time
  61. PT.ColorOverTimeR[1].TimePercent = 0.0;
  62. PT.ColorOverTimeR[1].Value = 0.5;
  63. PT.ColorOverTimeG[1].TimePercent = 0.0;
  64. PT.ColorOverTimeG[1].Value = 0.5;
  65. PT.ColorOverTimeB[1].TimePercent = 0.0;
  66. PT.ColorOverTimeB[1].Value = 0.5;
  67.  
  68. PT.ColorOverTimeR[2].TimePercent = 1.0;
  69. PT.ColorOverTimeR[2].Value = 0.5;
  70. PT.ColorOverTimeG[2].TimePercent = 1.0;
  71. PT.ColorOverTimeG[2].Value = 0.5;
  72. PT.ColorOverTimeB[2].TimePercent = 1.0;
  73. PT.ColorOverTimeB[2].Value = 0.5;
  74.  
  75. -- transparency over time
  76. PT.TransparencyOverTime[1].TimePercent = 0.0;
  77. PT.TransparencyOverTime[1].Value = 1.0;
  78.  
  79. PT.TransparencyOverTime[2].TimePercent = 0.01;
  80. PT.TransparencyOverTime[2].Value = 0.6;
  81.  
  82. PT.TransparencyOverTime[3].TimePercent = 1.0;
  83. PT.TransparencyOverTime[3].Value = 0.0;
  84.  
  85.  
  86. -- size over time
  87. PT.SizeOverTime[1].TimePercent = 0.0;
  88. PT.SizeOverTime[1].Value = 3.0;
  89.  
  90. PT.SizeOverTime[2].TimePercent = 0.4;
  91. PT.SizeOverTime[2].Value = 4.0;
  92.  
  93. PT.SizeOverTime[3].TimePercent = 1.0;
  94. PT.SizeOverTime[3].Value = 8.0;
  95.  
  96.  
  97. -- Speed over time
  98. PT.SpeedOverTime[1].TimePercent = 0.0;
  99. PT.SpeedOverTime[1].Value = 1.0;
  100.  
  101. PT.SpeedOverTime[2].TimePercent = 1.0;
  102. PT.SpeedOverTime[2].Value = 0.0;
  103.  
  104. -- Tangent Speed over time
  105. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  106. PT.TangentSpeedOverTime[1].Value = 0.0;
  107.  
  108. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  109. PT.TangentSpeedOverTime[2].Value = 0.0;
  110.  
  111.  
  112. -- GravityAcceleration over time
  113. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  114. PT.GravityAccelerationOverTime[1].Value = 120.0;
  115.  
  116. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  117. PT.GravityAccelerationOverTime[2].Value = 20.0;
  118.  
  119. -- AngleSpeed over time
  120. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  121. PT.AngleSpeedOverTime[1].Value = 1.0;
  122.  
  123. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  124. PT.AngleSpeedOverTime[2].Value = 1.0;
  125.  
  126.  
  127. --
  128. -- end particle system description
  129. --
  130.